package com.hnas.trade.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.hnas.trade.dao.CheckOrderRecordDao;
import com.hnas.trade.orm.CheckOrderRecord;
import com.hnas.trade.service.CheckOrderRecordService;

@Component("checkOrderRecordService")
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class CheckOrderRecordServiceImpl implements CheckOrderRecordService{

	@Autowired
	private CheckOrderRecordDao checkOrderRecordDao;
	
	@Override
	public CheckOrderRecord saveOrUpdate(CheckOrderRecord vo) throws Exception {
		return this.checkOrderRecordDao.saveOrUpdate(vo);
	}

	@Override
	public CheckOrderRecord findByOrderNo(String orderNo) {
		return this.checkOrderRecordDao.findByOrderNo(orderNo);
	}

}
